package org.jeecg.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.domain.po.ServeType;
import org.jeecg.service.ServeTypeService;
import org.jeecg.mapper.ServeTypeMapper;
import org.jeecg.utils.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 32327
* @description 针对表【serve_type(服务类型表)】的数据库操作Service实现
* @createDate 2024-12-20 09:54:32
*/
@Service
public class ServeTypeServiceImpl extends ServiceImpl<ServeTypeMapper, ServeType>
    implements ServeTypeService{
    @Autowired
    private ServeTypeMapper serveTypeMapper;
//    查看所有的服务类型
    @Override
    public ResponseResult listTypeData() {
        List<ServeType> list = serveTypeMapper.selectTypeList();
        return ResponseResult.okResult(list);
    }
}




